#include <Architect.hpp>
#include "Alley.hpp"

Alley::Alley()
{
  style = CLASSIC;
  south = north = true;
}

void Alley::setBuiltIn()
{
  int roadSize = 8.0; // FIXME : make as parameter of connections
  bv = new AABB(100/*taille plus haut immeuble*/, size, size);
  
  float blocHeight = size/2-roadSize/2;
  float blocWidth = size;
  StreetBloc* b1 = dynamic_cast<StreetBloc*>(archi->get("G_STREETBORDER"));
  b1->set(blocHeight, blocWidth, minLvl, maxLvl);
  addAsset(b1);


  StreetBloc* b4 = dynamic_cast<StreetBloc*>(archi->get("G_STREETBORDER"));
  b4->set(blocHeight, blocWidth, minLvl, maxLvl);
  b4->rotateOf(0,0,180);
  b4->translateOf(size,size,0);
  addAsset(b4);
}
